import request from '@/utils/request'

/** 会员列表 */
export function vipUserList(data) {
  return request({
    url: '/vip/vipUserList',
    method: 'post',
    data
  })
}

/** 获取vip等级列表 */
export function vipLevelList(data) {
  return request({
    url: '/vip/vipLevelList',
    method: 'post',
    data
  })
}

/** 新增vip等级 */
export function addVipLevel(data) {
  return request({
    url: '/vip/addVipLevel',
    method: 'post',
    data
  })
}

/** 修改vip等级/修改vip状态 */
export function modifyVipLevel(data) {
  return request({
    url: '/vip/modifyVipLevel',
    method: 'post',
    data
  })
}

/** 根据手机号码获取用户信息*/
export function searchVipUserByPhone(phone) {
  return request({
    url: '/vip/searchVipUserByPhone/' + phone,
    method: 'post'
  })
}

/** 修改用户等级 */
export function modifyUserVipLeve(data) {
  return request({
    url: '/vip/modifyUserVipLevel',
    method: 'post',
    data
  })
}

/** 删除vip等级*/
export function deleteVipUserById(id) {
  return request({
    url: '/vip/deleteVipUser/' + id,
    method: 'post'
  })
}

